翻訳と辞書
Words near each other
・ Filsen
・ Filsenberg
・ Filshur
・ Filson
・ Filson (company)
・ Filson Nunatak
・ Filson Young
・ Filson, Illinois
・ Filsponen Nunatak
・ Filsports Basketball Association
・ Filstroff
・ Filsum
・ Filter
・ Filter (aquarium)
・ Filter (band)
Filter (higher-order function)
・ Filter (large eddy simulation)
・ Filter (magazine)
・ Filter (mathematics)
・ Filter (signal processing)
・ Filter (software)
・ Filter (TV series)
・ Filter (video)
・ Filter bank
・ Filter binding assay
・ Filter bubble
・ Filter cake
・ Filter capacitor
・ Filter design
・ Filter discography


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Filter (higher-order function) : ウィキペディア英語版
Filter (higher-order function)
In functional programming, filter is a higher-order function that processes a data structure (typically a list) in some order to produce a new data structure containing exactly those elements of the original data structure for which a given predicate returns the boolean value true.
==Example==
In Haskell, the code example

filter even ()

evaluates to the list 2, 4,…10 by applying the predicate even to every element of the list of integers 1, 2,… 10 in that order and creating a new list of those elements for which the predicate returns the boolean value true, thereby giving a list containing only the even members of that list. Conversely, the code example

filter (not . even) ()

evaluates to the list 1, 3,…9 by collecting those elements of the list of integers 1, 2… 10 for which the predicate even returns the boolean value false (with . being the function composition operator).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Filter (higher-order function)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.